package com.example.news.db;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

/**
 * Created by Administrator on 2016/5/21.
 */
public class TypeSqliteHelper extends SQLiteOpenHelper{
    public TypeSqliteHelper(Context context) {
        super(context, "type.db", null, 1);
    }

    @Override
    public void onCreate(SQLiteDatabase db) {
        db.execSQL("create table types(_id integer primary key autoincrement,name varchar(30),url varchar(200))");
    }

    @Override
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {

    }
}
